package com.itlong.cloud.equip.sdk;


import com.itlong.cloud.POJO.VO.sdk.old.SDKAppOldElevatorInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <desc>
 *      旧版APP_SDK设备服务层暴露接口
 * </desc>
 *
 * @createDate 2017-11-16
 */
@FeignClient(name = "equip-service")
public interface ISDKAppOldEquipServiceClient {

    /**
     * <desc>
     * 根据地址获取电梯设备唯一码列表.
     * </desc>
     *
     * @param projectId 项目编号
     * @param buildNum  楼栋编号
     * @param unitNums  单元编号列表(逗号分隔)
     * @return 设备列表
     * @author LewisLouis
     * @createDate 2017-11-16
     */
    @RequestMapping(path = "/sdk/appEquip/getDeviceUniquesByAddress",method = RequestMethod.POST)
    List<SDKAppOldElevatorInfoVO> getDeviceUniquesByAddress(@RequestParam("projectId")String projectId,
                                                            @RequestParam("buildNum")String buildNum,
                                                            @RequestParam("unitNums")String unitNums);
}
